package ch03.shiLi.shiLi6;

import org.apache.log4j.Logger;

public class Test {
    private static Logger logger=Logger.getLogger(Test.class.getName());
    public static void main(String[] args) {

        Buyer buyer = new IntermediaryImpl(new RealBuyer());
        String result = buyer.havealook();
        logger.debug(result);

        RealBuyer buyer2 = new IntermediarySubclass();
        String havealook = buyer2.havealook();
        logger.debug(havealook);
    }
}
